package com.yh;

/**
 * @Auther: Liang
 * @Date: 2024/3/26 - 03 - 26 - 22:09
 * @Description: com.yh
 * @version: 1.0
 * 8、求出1到5之间所有整数之和。
 */
public class H8 {
    public static void main(String[] args) {
        int num =0;
        for (int i = 1; i <= 5; i++) {
            num+=i;
        }
        System.out.println(num);
    }
}
